.class public Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;
.super Llt/noframe/gpsfarmguide/utils/CancelableThread;
.source "AsyncNavigationLinesGenerator.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;
    }
.end annotation


# instance fields
.field a1:Lcom/google/android/gms/maps/model/LatLng;

.field a2:Lcom/google/android/gms/maps/model/LatLng;

.field public calc:Llt/noframe/gpsfarmguide/sprayer/CCalcs;

.field listsas:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/LatLng;",
            ">;"
        }
    .end annotation
.end field

.field meters:D

.field public navi:Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;

.field onShtrichLineSetListeners:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;",
            ">;"
        }
    .end annotation
.end field

.field poster:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/maps/model/LatLng;Lcom/google/android/gms/maps/model/LatLng;Ljava/util/List;DLlt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;Landroid/os/Handler;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/gms/maps/model/LatLng;",
            "Lcom/google/android/gms/maps/model/LatLng;",
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/LatLng;",
            ">;D",
            "Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;",
            "Landroid/os/Handler;",
            ")V"
        }
    .end annotation

    .line 43
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/utils/CancelableThread;-><init>()V

    .line 30
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->onShtrichLineSetListeners:Ljava/util/List;

    .line 33
    new-instance v0, Llt/noframe/gpsfarmguide/sprayer/CCalcs;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/sprayer/CCalcs;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->calc:Llt/noframe/gpsfarmguide/sprayer/CCalcs;

    .line 44
    iput-object p1, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->a1:Lcom/google/android/gms/maps/model/LatLng;

    .line 45
    iput-object p2, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->a2:Lcom/google/android/gms/maps/model/LatLng;

    .line 46
    iput-object p3, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->listsas:Ljava/util/List;

    .line 47
    iput-wide p4, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->meters:D

    .line 48
    iput-object p6, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->navi:Llt/noframe/gpsfarmguide/sprayer/navigation/NavigationLines;

    .line 49
    iput-object p7, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->poster:Landroid/os/Handler;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;)V
    .locals 0

    .line 23
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->onSet()V

    return-void
.end method

.method private onSet()V
    .locals 2

    .line 102
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->onShtrichLineSetListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;

    .line 103
    invoke-interface {v1}, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;->onSet()V

    goto :goto_0

    :cond_0
    return-void
.end method


# virtual methods
.method public addOnShtrichLineSetListeners(Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;)V
    .locals 1

    .line 129
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->onShtrichLineSetListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public onCanceled()V
    .locals 2

    .line 90
    invoke-super {p0}, Llt/noframe/gpsfarmguide/utils/CancelableThread;->onCanceled()V

    .line 92
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->onShtrichLineSetListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;

    .line 93
    invoke-interface {v1}, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$OnShtrichLineSetListener;->onCancel()V

    goto :goto_0

    :cond_0
    return-void
.end method

.method public run()V
    .locals 6

    .line 54
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 56
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->calc:Llt/noframe/gpsfarmguide/sprayer/CCalcs;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->a1:Lcom/google/android/gms/maps/model/LatLng;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->a2:Lcom/google/android/gms/maps/model/LatLng;

    iget-wide v3, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->meters:D

    iget-object v5, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->listsas:Ljava/util/List;

    invoke-virtual/range {v0 .. v5}, Llt/noframe/gpsfarmguide/sprayer/CCalcs;->setShtirch4(Lcom/google/android/gms/maps/model/LatLng;Lcom/google/android/gms/maps/model/LatLng;DLjava/util/List;)Ljava/util/Map;

    move-result-object v0

    .line 58
    iget-object v1, p0, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;->poster:Landroid/os/Handler;

    new-instance v2, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$1;

    invoke-direct {v2, p0, v0}, Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator$1;-><init>(Llt/noframe/gpsfarmguide/sprayer/navigation/AsyncNavigationLinesGenerator;Ljava/util/Map;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method
